<template>
  <div>
    御剑乘风来,除魔天地间!----App
    <Father></Father>
    <hr />
    {{ value }} ===={{ value1 }}--{{ app }}
    <BaseSelet @changeHandle="handle"></BaseSelet>
    <BaseSelet @changeHandle="handle1"></BaseSelet>
  </div>
</template>
<script>
import Father from './components/Father2.vue'
import BaseSelet from './components/BaseSelet.vue'
export default {
  name: 'app',
  components: {
    Father,
    BaseSelet
  },
  provide () {
    return {
      app: this.app,
      say: this.say
    }
  },
  data () {
    return {
      app: '我是你爷爷额',
      value: '',
      value1: '',
    }
  },
  created () {
  },
  computed: {
  },
  methods: {
    say (msg) {
      console.log('嘿嘿嘿')

      this.app = msg
    },
    handle (msg) {
      this.value = msg
    },
    handle1 (msg) {
      this.value1 = msg
    }
  }
}
</script>
<style lang='less'  scoped>
</style>
